package com.atguigu.exam;

import com.atguigu.exam.properties.AiProperties;
import com.atguigu.exam.properties.MinioProperties;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;


//启用指定的配置属性类，让这些类能够被 Spring 容器管理并绑定外部配置
//如果仅给 MinioProperties 或 AiProperties 加 @Configuration，它会被 Spring 识别为配置类，
// 但不会自动绑定外部配置文件中的属性
@EnableConfigurationProperties(value = {MinioProperties.class, AiProperties.class})
@SpringBootApplication
@MapperScan("com.atguigu.exam.mapper")
public class AdminWebApplication {
    public static void main(String[] args) {
        SpringApplication.run(AdminWebApplication.class, args);
    }
}